package net.flyinggroup.scs.gitter.controller;

import net.flyinggroup.scs.gitter.controller.vm.UserVM;
import net.flyinggroup.scs.gitter.controller.vm.UsersStatisticVM;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Collections;

@Controller
@RequestMapping
public class ChatController {
    @GetMapping
    public String index(Model model) {
        model.addAttribute("messages", Collections.emptyList());
        UserVM emptyUser = new UserVM("", "");
        model.addAttribute("statistic", new UsersStatisticVM(emptyUser, emptyUser));
        return "chat";
    }
}
